package com.redstar.study;

import com.actionbarsherlock.app.SherlockPreferenceActivity;

import android.content.Intent;
import android.os.Bundle;
import android.util.TypedValue;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

/**
 * @author o0
 * 
 */
public class QuizPreferences extends SherlockPreferenceActivity  {

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.preference_shell);		
		addPreferencesFromResource(R.xml.quiz_preferences);
		getSupportActionBar().setTitle("Quiz Preferences");
		getSupportActionBar().setDisplayShowHomeEnabled(false);
		setTheme(R.style.ListText);


		
		final Button StartButton = (Button) findViewById(R.id.StartButton);
		StartButton.setOnClickListener(new OnClickListener() {
			public void onClick(View arg0) {
				// TODO Auto-generated method stub
				Intent i = new Intent(QuizPreferences.this, Quiz.class);
				QuizPreferences.this.startActivity(i);
			}
		});
	}
}
